package com.sell.service;

import com.lly835.bestpay.model.PayResponse;
import com.lly835.bestpay.model.RefundResponse;
import com.sell.dto.OrderDTO;

/**
 * @Author: megan
 * @Data: 2018/12/10 10:25 PM
 * @Description: 支付模块
 */
public interface PayService {

    /**
     * h5 支付
     *
     * @param orderDTO
     * @return
     */
    PayResponse create(OrderDTO orderDTO);

    /**
     * 支付异步回调
     *
     * @param notifyData
     * @return
     */
    PayResponse notify(String notifyData);

    /**
     * 微信退款
     *
     * @param orderDTO
     */
    RefundResponse refund(OrderDTO orderDTO);
}
